<?php

use app\assets\BackendAsset as Asset;

?>
<el-container class="wp-form-container">
    <el-header class="top-wrapper no-pb bg-white" height="auto" ref="mainScrollShadow">
        <el-row :inline="true" class="button-container">
            <el-col>
                <el-breadcrumb separator="/">
                    <el-breadcrumb-item>
                        <a @click="goToIndex"><i class="el-icon-location-outline"></i>&nbsp;首页</a>
                    </el-breadcrumb-item>
                    <el-breadcrumb-item>
                        <a @click="cancel">&nbsp;CRUD操作</a>
                    </el-breadcrumb-item>
                    <el-breadcrumb-item @dblclick.native="window.open(window.location.href)">
                        详情
                    </el-breadcrumb-item>
                </el-breadcrumb>
            </el-col>
        </el-row>
    </el-header>
    <el-main class="content-wrapper transits bg-white ph-30" v-if="!isError">
        <div class="mt-20"></div>
        <el-descriptions title="">
            <el-descriptions-item label=''>
                <span v-text="detail.id"></span>
            </el-descriptions-item>
            <el-descriptions-item label='账号'>
                <span v-text="detail.user_name"></span>
            </el-descriptions-item>
            <el-descriptions-item label='昵称'>
                <span v-text="detail.nick_name"></span>
            </el-descriptions-item>
            <el-descriptions-item label='密码'>
                <span v-text="detail.password"></span>
            </el-descriptions-item>
            <el-descriptions-item label='加密字符'>
                <span v-text="detail.salt"></span>
            </el-descriptions-item>
            <el-descriptions-item label='性别'>
                <span v-text="detail.sex_text"></span>
            </el-descriptions-item>
            <el-descriptions-item label='头像'>
                <span v-text="detail.avatar"></span>
            </el-descriptions-item>
            <el-descriptions-item label='电话号码'>
                <span v-text="detail.phone"></span>
            </el-descriptions-item>
            <el-descriptions-item label='个人说明'>
                <span v-text="detail.description"></span>
            </el-descriptions-item>
            <el-descriptions-item label='注册时间'>
                <span v-text="detail.add_time"></span>
            </el-descriptions-item>
            <el-descriptions-item label='更新时间'>
                <span v-text="detail.update_time"></span>
            </el-descriptions-item>
            <el-descriptions-item label='注册IP'>
                <span v-text="detail.reg_ip"></span>
            </el-descriptions-item>
            <el-descriptions-item label='状态'>
                <span v-text="detail.status_text"></span>
            </el-descriptions-item>
        </el-descriptions>
    </el-main>
    <el-main class="content-wrapper transits bg-white" v-else>
        <el-empty v-if="isError" :description="errorMsg" class="mt-200"></el-empty>
    </el-main>
    <el-footer class="bottom-button" :height="50" v-if="pageDialog.isIframe">
        <el-button size="mini" type="danger" @click="cancel">
            返回
        </el-button>
    </el-footer>
</el-container>
<?php

// Asset::addCss($this, "/css/backend/user-detail.css");
Asset::addScript($this, "/js/backend/user-detail.js");

$this->registerJs('instance = new app();');

?>